//
//  MJRefreshHeaderGif.m
//  Funny
//
//  Created by dllo on 15/10/27.
//  Copyright © 2015年 King. All rights reserved.
//

#import "MyRefreshHeaderGif.h"

@implementation MyRefreshHeaderGif

- (void)prepare
{
    [super prepare];
    NSMutableArray *imageArr = [NSMutableArray array];
    UIImage *image = [UIImage imageNamed:@"loading@3x.png"];
    [imageArr addObject:image];
 
    NSMutableArray *refreshImage = [NSMutableArray array];
    for (NSUInteger i =1; i < 28; i++) {
        UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"refresh%ld@3x.png",(unsigned long)i]];
        [refreshImage addObject:image];
    }
    [self setImages:imageArr forState:MJRefreshStateIdle];
    [self setImages:refreshImage forState:MJRefreshStatePulling];
    [self setImages:refreshImage forState:MJRefreshStateRefreshing];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
